<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 函数内部声明的函数也会提升到外层函数的上面；
        function test(fn) {
            fn()
            function fn() {
                console.log("我是内部的fn函数");
            }
        }
        test(10);
        // fn();


    </script>
</body>
</html>